package cn.factorybox.gateway.service;

import cn.factorybox.model.entity.DeviceData;
import cn.factorybox.model.entity.FactoryDeviceData;
import cn.factorybox.model.entity.RfidDeviceData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-13 23:33
 */

@FeignClient(value = "factory-item-service")
public interface TerminalService {

    @PostMapping("/devicedata/saveJson")
    public boolean save(DeviceData deviceData);

    @PostMapping("/factorydata/saveFactory")
    public int saveFactoryData(FactoryDeviceData factoryDeviceData);

    @PostMapping("/devicedata/saveRfid")
    public boolean saveRfid(RfidDeviceData deviceData);
}
